package cn.xpp011.distributedlocksdemo.controller;

import cn.xpp011.distributedlocksdemo.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: distributed-locks-demo
 * @description: 测试类
 * @author: xpp011
 * @create: 2022-03-05 22:14
 **/
@RestController
public class TestController {

    @Autowired
    private IService service;

    @GetMapping("/test")
    public String test(String s) {
        service.test();
        return service.test(s, 137328, null);
    }


}
